// 访问器的set和get
{
    var User = /** @class */ (function () {
        function User(name) {
            this._name = name;
        }
        Object.defineProperty(User.prototype, "name", {
            get: function () {
                return this._name + '      get';
            },
            set: function (name) {
                this._name = name;
            },
            enumerable: false,
            configurable: true
        });
        return User;
    }());
    var user = new User('zrf');
    user.name = 'updatedzrf';
    console.log(user.name);
}
